﻿/***************************************************************************
*		功能：     每月明细实体类(代码生成工具搞定的)
*		作者：     Hydra
*		日期：     2011-08-11 05:47
*		
*		修改日期：
*		修改人：
*		修改内容：
/* *************************************************************************/
using System;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.IO;
using System.Text;
using System.Data;
using Deeper.DataAccess;
using Deeper.Common;
using Deeper.Common.Web;
using System.Collections.Generic;
namespace ZhongTian.Model
{
	/// <summary>
	/// 每月明细
	/// </summary>
	[Serializable]
	[HTable(TableName = "T_Detail", EntityName = "Detail")]
	public partial class Detail :  IModel
	{
        /// <summary>
        /// 是否新参数
        /// </summary>
        public bool IsNewModel() { return DetailID == 0; }

	    #region 所有的字段
	 
	    
		/// <summary>
		/// id
		/// </summary>
		[HColumn("DetailID", Remake = "id", DataType = "int" , IsPrimary = true , IsIdentity = true , IsUniqueness = true)]
		public int DetailID { set; get; }
        

		/// <summary>
		/// year
		/// </summary>
		[HColumn("Year", Remake = "year", DataType = "int")]
		public int Year { set; get; }
        

		/// <summary>
		/// mouth
		/// </summary>
		[HColumn("Mouth", Remake = "mouth", DataType = "int")]
		public int Mouth { set; get; }
        

		/// <summary>
		/// date
		/// </summary>
		[HColumn("Date", Remake = "date", DataType = "datetime")]
		public DateTime Date { set; get; }
        

		/// <summary>
		/// CustID
		/// </summary>
		[HColumn("CustID", Remake = "CustID", DataType = "int")]
		public int CustID { set; get; }
        

		/// <summary>
		/// ItemID
		/// </summary>
		[HColumn("ItemID", Remake = "ItemID", DataType = "int")]
		public int ItemID { set; get; }
        

		/// <summary>
		/// qty1
		/// </summary>
		[HColumn("Qty1", Remake = "qty1", DataType = "int")]
		public int Qty1 { set; get; }
        

		/// <summary>
		/// qty2
		/// </summary>
		[HColumn("Qty2", Remake = "qty2", DataType = "int")]
		public int Qty2 { set; get; }
        

		/// <summary>
		/// qty3
		/// </summary>
		[HColumn("Qty3", Remake = "qty3", DataType = "int")]
		public int Qty3 { set; get; }
        

		/// <summary>
		/// qty4
		/// </summary>
		[HColumn("Qty4", Remake = "qty4", DataType = "int")]
		public int Qty4 { set; get; }
        

		/// <summary>
		/// qty5
		/// </summary>
		[HColumn("Qty5", Remake = "qty5", DataType = "int")]
		public int Qty5 { set; get; }
        

		/// <summary>
		/// qty6
		/// </summary>
		[HColumn("Qty6", Remake = "qty6", DataType = "int")]
		public int Qty6 { set; get; }
        

		/// <summary>
		/// qty7
		/// </summary>
		[HColumn("Qty7", Remake = "qty7", DataType = "int")]
		public int Qty7 { set; get; }
        

		/// <summary>
		/// qty8
		/// </summary>
		[HColumn("Qty8", Remake = "qty8", DataType = "int")]
		public int Qty8 { set; get; }
        

		/// <summary>
		/// qty9
		/// </summary>
		[HColumn("Qty9", Remake = "qty9", DataType = "int")]
		public int Qty9 { set; get; }
        

		/// <summary>
		/// qty10
		/// </summary>
		[HColumn("Qty10", Remake = "qty10", DataType = "int")]
		public int Qty10 { set; get; }
        

		/// <summary>
		/// qty11
		/// </summary>
		[HColumn("Qty11", Remake = "qty11", DataType = "int")]
		public int Qty11 { set; get; }
        

		/// <summary>
		/// qty12
		/// </summary>
		[HColumn("Qty12", Remake = "qty12", DataType = "int")]
		public int Qty12 { set; get; }
        

		/// <summary>
		/// qty13
		/// </summary>
		[HColumn("Qty13", Remake = "qty13", DataType = "int")]
		public int Qty13 { set; get; }
        

		/// <summary>
		/// qty14
		/// </summary>
		[HColumn("Qty14", Remake = "qty14", DataType = "int")]
		public int Qty14 { set; get; }
        

		/// <summary>
		/// qty15
		/// </summary>
		[HColumn("Qty15", Remake = "qty15", DataType = "int")]
		public int Qty15 { set; get; }
        

		/// <summary>
		/// qty16
		/// </summary>
		[HColumn("Qty16", Remake = "qty16", DataType = "int")]
		public int Qty16 { set; get; }
        

		/// <summary>
		/// qty17
		/// </summary>
		[HColumn("Qty17", Remake = "qty17", DataType = "int")]
		public int Qty17 { set; get; }
        

		/// <summary>
		/// qty18
		/// </summary>
		[HColumn("Qty18", Remake = "qty18", DataType = "int")]
		public int Qty18 { set; get; }
        

		/// <summary>
		/// qty19
		/// </summary>
		[HColumn("Qty19", Remake = "qty19", DataType = "int")]
		public int Qty19 { set; get; }
        

		/// <summary>
		/// qty20
		/// </summary>
		[HColumn("Qty20", Remake = "qty20", DataType = "int")]
		public int Qty20 { set; get; }
        

		/// <summary>
		/// qty21
		/// </summary>
		[HColumn("Qty21", Remake = "qty21", DataType = "int")]
		public int Qty21 { set; get; }
        

		/// <summary>
		/// qty22
		/// </summary>
		[HColumn("Qty22", Remake = "qty22", DataType = "int")]
		public int Qty22 { set; get; }
        

		/// <summary>
		/// qty23
		/// </summary>
		[HColumn("Qty23", Remake = "qty23", DataType = "int")]
		public int Qty23 { set; get; }
        

		/// <summary>
		/// qty24
		/// </summary>
		[HColumn("Qty24", Remake = "qty24", DataType = "int")]
		public int Qty24 { set; get; }
        

		/// <summary>
		/// qty25
		/// </summary>
		[HColumn("Qty25", Remake = "qty25", DataType = "int")]
		public int Qty25 { set; get; }
        

		/// <summary>
		/// qty26
		/// </summary>
		[HColumn("Qty26", Remake = "qty26", DataType = "int")]
		public int Qty26 { set; get; }
        

		/// <summary>
		/// qty27
		/// </summary>
		[HColumn("Qty27", Remake = "qty27", DataType = "int")]
		public int Qty27 { set; get; }
        

		/// <summary>
		/// qty28
		/// </summary>
		[HColumn("Qty28", Remake = "qty28", DataType = "int")]
		public int Qty28 { set; get; }
        

		/// <summary>
		/// qty29
		/// </summary>
		[HColumn("Qty29", Remake = "qty29", DataType = "int")]
		public int Qty29 { set; get; }
        

		/// <summary>
		/// qty30
		/// </summary>
		[HColumn("Qty30", Remake = "qty30", DataType = "int")]
		public int Qty30 { set; get; }
        

		/// <summary>
		/// qty31
		/// </summary>
		[HColumn("Qty31", Remake = "qty31", DataType = "int")]
		public int Qty31 { set; get; }
        

		/// <summary>
		/// totalqty
		/// </summary>
		[HColumn("Totalqty", Remake = "totalqty", DataType = "" , IsNullable = true)]
		public string Totalqty { set; get; }
        

		/// <summary>
		/// price
		/// </summary>
		[HColumn("Price", Remake = "price", DataType = "numeric" , Length =14)]
		public int Price { set; get; }
        

		/// <summary>
		/// total
		/// </summary>
		[HColumn("Total", Remake = "total", DataType = "" , IsNullable = true)]
		public string Total { set; get; }
        



        public class F
        {
    		 
			 /// <summary>
			 /// id
			 /// </summary>
			 public static Field DetailID = new Field("T_Detail","DetailID");
	    	 

			 /// <summary>
			 /// year
			 /// </summary>
			 public static Field Year = new Field("T_Detail","Year");
	    	 

			 /// <summary>
			 /// mouth
			 /// </summary>
			 public static Field Mouth = new Field("T_Detail","Mouth");
	    	 

			 /// <summary>
			 /// date
			 /// </summary>
			 public static Field Date = new Field("T_Detail","Date");
	    	 

			 /// <summary>
			 /// CustID
			 /// </summary>
			 public static Field CustID = new Field("T_Detail","CustID");
	    	 

			 /// <summary>
			 /// ItemID
			 /// </summary>
			 public static Field ItemID = new Field("T_Detail","ItemID");
	    	 

			 /// <summary>
			 /// qty1
			 /// </summary>
			 public static Field Qty1 = new Field("T_Detail","Qty1");
	    	 

			 /// <summary>
			 /// qty2
			 /// </summary>
			 public static Field Qty2 = new Field("T_Detail","Qty2");
	    	 

			 /// <summary>
			 /// qty3
			 /// </summary>
			 public static Field Qty3 = new Field("T_Detail","Qty3");
	    	 

			 /// <summary>
			 /// qty4
			 /// </summary>
			 public static Field Qty4 = new Field("T_Detail","Qty4");
	    	 

			 /// <summary>
			 /// qty5
			 /// </summary>
			 public static Field Qty5 = new Field("T_Detail","Qty5");
	    	 

			 /// <summary>
			 /// qty6
			 /// </summary>
			 public static Field Qty6 = new Field("T_Detail","Qty6");
	    	 

			 /// <summary>
			 /// qty7
			 /// </summary>
			 public static Field Qty7 = new Field("T_Detail","Qty7");
	    	 

			 /// <summary>
			 /// qty8
			 /// </summary>
			 public static Field Qty8 = new Field("T_Detail","Qty8");
	    	 

			 /// <summary>
			 /// qty9
			 /// </summary>
			 public static Field Qty9 = new Field("T_Detail","Qty9");
	    	 

			 /// <summary>
			 /// qty10
			 /// </summary>
			 public static Field Qty10 = new Field("T_Detail","Qty10");
	    	 

			 /// <summary>
			 /// qty11
			 /// </summary>
			 public static Field Qty11 = new Field("T_Detail","Qty11");
	    	 

			 /// <summary>
			 /// qty12
			 /// </summary>
			 public static Field Qty12 = new Field("T_Detail","Qty12");
	    	 

			 /// <summary>
			 /// qty13
			 /// </summary>
			 public static Field Qty13 = new Field("T_Detail","Qty13");
	    	 

			 /// <summary>
			 /// qty14
			 /// </summary>
			 public static Field Qty14 = new Field("T_Detail","Qty14");
	    	 

			 /// <summary>
			 /// qty15
			 /// </summary>
			 public static Field Qty15 = new Field("T_Detail","Qty15");
	    	 

			 /// <summary>
			 /// qty16
			 /// </summary>
			 public static Field Qty16 = new Field("T_Detail","Qty16");
	    	 

			 /// <summary>
			 /// qty17
			 /// </summary>
			 public static Field Qty17 = new Field("T_Detail","Qty17");
	    	 

			 /// <summary>
			 /// qty18
			 /// </summary>
			 public static Field Qty18 = new Field("T_Detail","Qty18");
	    	 

			 /// <summary>
			 /// qty19
			 /// </summary>
			 public static Field Qty19 = new Field("T_Detail","Qty19");
	    	 

			 /// <summary>
			 /// qty20
			 /// </summary>
			 public static Field Qty20 = new Field("T_Detail","Qty20");
	    	 

			 /// <summary>
			 /// qty21
			 /// </summary>
			 public static Field Qty21 = new Field("T_Detail","Qty21");
	    	 

			 /// <summary>
			 /// qty22
			 /// </summary>
			 public static Field Qty22 = new Field("T_Detail","Qty22");
	    	 

			 /// <summary>
			 /// qty23
			 /// </summary>
			 public static Field Qty23 = new Field("T_Detail","Qty23");
	    	 

			 /// <summary>
			 /// qty24
			 /// </summary>
			 public static Field Qty24 = new Field("T_Detail","Qty24");
	    	 

			 /// <summary>
			 /// qty25
			 /// </summary>
			 public static Field Qty25 = new Field("T_Detail","Qty25");
	    	 

			 /// <summary>
			 /// qty26
			 /// </summary>
			 public static Field Qty26 = new Field("T_Detail","Qty26");
	    	 

			 /// <summary>
			 /// qty27
			 /// </summary>
			 public static Field Qty27 = new Field("T_Detail","Qty27");
	    	 

			 /// <summary>
			 /// qty28
			 /// </summary>
			 public static Field Qty28 = new Field("T_Detail","Qty28");
	    	 

			 /// <summary>
			 /// qty29
			 /// </summary>
			 public static Field Qty29 = new Field("T_Detail","Qty29");
	    	 

			 /// <summary>
			 /// qty30
			 /// </summary>
			 public static Field Qty30 = new Field("T_Detail","Qty30");
	    	 

			 /// <summary>
			 /// qty31
			 /// </summary>
			 public static Field Qty31 = new Field("T_Detail","Qty31");
	    	 

			 /// <summary>
			 /// totalqty
			 /// </summary>
			 public static Field Totalqty = new Field("T_Detail","Totalqty");
	    	 

			 /// <summary>
			 /// price
			 /// </summary>
			 public static Field Price = new Field("T_Detail","Price");
	    	 

			 /// <summary>
			 /// total
			 /// </summary>
			 public static Field Total = new Field("T_Detail","Total");
	    	 

        }
        #endregion
		  
	 
	}
    
}